home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DU Projects / Talker / Sources / Selection.cpp < prev    next >
Encoding:
Text File  |  1996-08-22  |  1.8 KB  |  79 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 2 $
  2. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. //========================================================================
  5. #ifndef SELECTION_H
  6. #include "Selection.h"        // CTalkerSelection
  7. #endif
  8.  
  9. #ifndef CONTENT_H            // CTalkerContent
  10. #include "Content.h"
  11. #endif
  12.  
  13. // ----- Part Layer -----
  14. #ifndef FWUTIL_H
  15. #include "FWUtil.h"
  16. #endif
  17.  
  18. #ifndef FWITERS_H
  19. #include "FWIters.h"
  20. #endif
  21.  
  22. #ifndef FWPRESEN_H
  23. #include "FWPresen.h"
  24. #endif
  25.  
  26. //========================================================================
  27. #ifdef FW_BUILD_MAC
  28. #pragma segment talker
  29. #endif
  30.  
  31. FW_DEFINE_AUTO(CTalkerSelection)
  32. //========================================================================
  33. CTalkerSelection::CTalkerSelection(Environment* ev, CTalkerContent* content)
  34.   :    FW_CSelection(ev, false, false),
  35.     fTalkerContent(content)
  36. {
  37.     FW_END_CONSTRUCTOR
  38. }
  39.  
  40. //-------------------------------------------------------------------------
  41. CTalkerSelection::~CTalkerSelection()
  42. {    
  43.     FW_START_DESTRUCTOR
  44. }
  45.  
  46. //-------------------------------------------------------------------------
  47. void 
  48. CTalkerSelection::CloseSelection(Environment*)
  49. {
  50. }
  51.  
  52. //-------------------------------------------------------------------------
  53. void 
  54. CTalkerSelection::ClearSelection(Environment* ev)
  55. {
  56.     FW_UNUSED(ev);
  57. }
  58.  
  59. //-------------------------------------------------------------------------
  60. void 
  61. CTalkerSelection::SelectAll(Environment*)
  62. {
  63. }
  64.  
  65. //-------------------------------------------------------------------------
  66. FW_Boolean 
  67. CTalkerSelection::IsEmpty(Environment* ev) const
  68. {
  69.     FW_UNUSED(ev);
  70.     return TRUE;            // no data to copy
  71. }
  72.  
  73. //-------------------------------------------------------------------------
  74. FW_CContent* 
  75. CTalkerSelection::GetSelectedContent(Environment*)
  76. {
  77.     return fTalkerContent;
  78. }
  79.